<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[pid]', $classdata, null, ['class'=>'form-control', 'required'=>'','id'=>'c-pid'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group" data-favisible="pid=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>




    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score" class="form-control" name="row[score]" type="number">
        </div>
    </div>


    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tip_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-tip_type" class="form-control selectpicker" name="row[tip_type]">
                {foreach name="tipTypeList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group" data-favisible="tip_type=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tip_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tip_id" data-rule="required" data-source="talent/talent_assess_tip/index" class="form-control selectpage" name="row[tip_id]" type="text" value="0">
        </div>
    </div>

    <div class="form-group" data-favisible="tip_type=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-tip" class="form-control editor" rows="5" name="row[tip]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group" data-favisible="pid=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_score')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_score" class="form-control" name="row[max_score]" type="number">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
